package chp12.test4;

public class TestShape {
    public static void main(String[] args) {
        int a = 3;
        int b = 4;
        int c = 5;
        System.out.println("第一条边:"+a);
        System.out.println("第二条边:"+b);
        System.out.println("第三条边:"+c);

        Shape shape = new Shape();
        //能不能构成三角形
        boolean flag = shape.isTriangle(a,b,c);
        if(flag) {
            System.out.println("能构成三角形");
            //能构造什么三角形
            shape.shape(a, b, c);
        }else{
            System.out.println("不能构成三角形");
        }
    }
}
